package org.eoti.ai.bayesian;

public abstract class BayesianRule<DATA>
{
    public static final double MIN_PROBABILITY = 0.01;
    public static final double MAX_PROBABILITY = 0.99;

    public BayesianRule()
    {
        
    }

    public abstract void train(DATA data, boolean isGoodData);
    protected abstract double probability(DATA data);

    public double isGood(DATA data){return probability(data);}
    public double isBad(DATA data){return 1.00 - probability(data);}
}
